import TabsView from "@/layouts/tabs/TabsView";
import BlankView from "@/layouts/BlankView";

// 路由配置
const options = {
  routes: [
    {
      path: "/login",
      name: "登录页",
      component: () => import("@/pages/login"),
    },
    {
      path: "*",
      name: "404",
      component: () => import("@/pages/exception/404"),
    },
    {
      path: "/403",
      name: "403",
      component: () => import("@/pages/exception/403"),
    },
    {
      path: "/",
      name: "首页",
      component: TabsView,
      redirect: "/login",
      children: [
        {
          path: "page",
          name: "应用",
          component: BlankView,
          meta: {
            icon: "dashboard",
          },
          children: [
            {
              path: "dashboard",
              menuImg: 'menu4',
              name: "仪表盘",
              meta: {
                icon: "dashboard",
                page: {
                  closable: false,
                },
              },
              component: () => import("@/pages/dashboard/dashboard"),
            },
            {
              path: "process",
              menuImg: 'menu4',
              name: "价格",
              meta: {
                icon: "money-collect",
                page: {
                  closable: false,
                },
              },
              component: () => import("@/pages/dashboard/price"),
            },
            {
              path: "waste",
              name: "生成代理",
              meta: {
                icon: "money-collect",
                page: {
                  closable: false,
                },
              },
              component: () => import("@/pages/dashboard/analysis"),
            },
            {
              path: "transportation",
              name: "通道管理",
              meta: {
                icon: "money-collect",
                page: {
                  closable: false,
                },
              },
              component: () => import("@/pages/dashboard/channel"),
            },
            {
              path: "abnormalwaste",
              name: "账单",
              component: () => import("@/pages/form/abnormal"),
            },
            {
              path: "backup",
              name: "轮廓",
              component: () => import("@/pages/form/step"),
            },
            {
              path: "management",
              name: "角色管理",
              component: () => import("@/pages/role/manage"),
            },
          ],
        },
      ],
    },
  ],
};

export default options;
